PATH![]() |
![]() ![]() |
OSStatus MPCreateSemaphore (
MPSemaphoreCount maximumValue,
MPSemaphoreCount initialValue,
MPSemaphoreID *semaphore);
If you want to create a binary semaphore, you can call the macro MPCreateBinarySemaphore (MPSemaphoreID *semaphore) instead, which simply calls MPCreateSemaphore with both maximumValue and initialValue set to 1.
The function MPDeleteSemaphore .